<div class="content-list">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <table id="tlist">
        <thead>
            <tr>
                <tr>
                <th>Número</th>
                <th>Aluno</th>
                <th>Data</th>
                <th>Status</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) {
                
                $obj = new Admin_Model_DbTable_Curso();
                $cur = $obj->fetchRow('CUR_ID = ' . $row['CUR_ID'])->toArray();
                
                $obj = new Admin_Model_DbTable_Matricula();
                $mat = $obj->fetchRow('MAT_ID = ' . $row['MAT_ID'])->toArray();
                
                $obj = new Admin_Model_DbTable_Aluno();
                $alu = $obj->fetchRow('ALU_ID = ' . $mat['ALU_ID'])->toArray();
              
            ?>
                <tr>  
                    <td align="left"><?php echo $mat['MAT_ID']; ?></td>
                    <td align="left"><?php echo $alu['ALU_NOM']; ?></td>
                    <td align="left"><?php echo Datetools::invertDH_D($mat['MAT_DATHOR']); ?></td>
                    <td><?php echo tools::returnStatus($mat->MAT_STA); ?></td>
                    <td class="bc">
                        <?php /* if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'editmatricula', 'id' => $row->MAT_ID)); ?>">Ver</a><?php } */ ?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>